MPIPosition

@Serializable
data class MPIPosition(    val timestamp: Double? = 0.0,     val coords: MPIPosition.MPICoordinates? = null,     val type: String = "",     val annotation: String? = null,     val bearing: Double? = null)

Represents the geolocation of an object at a specific point in time.

Constructors

Link copied to clipboard
constructor(    timestamp: Double? = 0.0,     coords: MPIPosition.MPICoordinates? = null,     type: String = "",     annotation: String? = null,     bearing: Double? = null)

Types

Link copied to clipboard
@Serializable
data class MPICoordinates(val latitude: Double, val longitude: Double, val accuracy: Double, val floorLevel: Int?)

This struct represents specific coordinates/location of an object

Properties

Link copied to clipboard
val annotation: String? = null

Additional information or notes. Nullable. Defaults to null if not provided.

Link copied to clipboard
val bearing: Double? = null

Optional property to override the bearing of the bluedot. Specifies the clockwise rotation angle in degrees from North. For example: - A value of 0 (or null) indicates North. - A value of 90 indicates East. - A value of 225 indicates Southwest. Nullable. Defaults to null if not provided. This property helps in setting a specific orientation for the bluedot.

Link copied to clipboard

The geographical coordinates of the position. Nullable. Defaults to null if not provided.

Link copied to clipboard
val timestamp: Double? = 0.0

The timestamp of the position, presumably in seconds or milliseconds. Nullable. Defaults to 0.0 if not provided.

Link copied to clipboard

The type of the position. Defaults to "SUCCESS" if not provided.

Functions

Link copied to clipboard
open override fun toString(): String

convert MPIPosition to string